package xian.woniu.entity;

import java.util.ArrayList;
import java.util.List;

public class CarExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CarExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCIdIsNull() {
            addCriterion("c_id is null");
            return (Criteria) this;
        }

        public Criteria andCIdIsNotNull() {
            addCriterion("c_id is not null");
            return (Criteria) this;
        }

        public Criteria andCIdEqualTo(Integer value) {
            addCriterion("c_id =", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotEqualTo(Integer value) {
            addCriterion("c_id <>", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdGreaterThan(Integer value) {
            addCriterion("c_id >", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("c_id >=", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdLessThan(Integer value) {
            addCriterion("c_id <", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdLessThanOrEqualTo(Integer value) {
            addCriterion("c_id <=", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdIn(List<Integer> values) {
            addCriterion("c_id in", values, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotIn(List<Integer> values) {
            addCriterion("c_id not in", values, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdBetween(Integer value1, Integer value2) {
            addCriterion("c_id between", value1, value2, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotBetween(Integer value1, Integer value2) {
            addCriterion("c_id not between", value1, value2, "cId");
            return (Criteria) this;
        }

        public Criteria andUIdIsNull() {
            addCriterion("u_id is null");
            return (Criteria) this;
        }

        public Criteria andUIdIsNotNull() {
            addCriterion("u_id is not null");
            return (Criteria) this;
        }

        public Criteria andUIdEqualTo(Integer value) {
            addCriterion("u_id =", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdNotEqualTo(Integer value) {
            addCriterion("u_id <>", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdGreaterThan(Integer value) {
            addCriterion("u_id >", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("u_id >=", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdLessThan(Integer value) {
            addCriterion("u_id <", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdLessThanOrEqualTo(Integer value) {
            addCriterion("u_id <=", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdIn(List<Integer> values) {
            addCriterion("u_id in", values, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdNotIn(List<Integer> values) {
            addCriterion("u_id not in", values, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdBetween(Integer value1, Integer value2) {
            addCriterion("u_id between", value1, value2, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdNotBetween(Integer value1, Integer value2) {
            addCriterion("u_id not between", value1, value2, "uId");
            return (Criteria) this;
        }

        public Criteria andCCardIsNull() {
            addCriterion("c_card is null");
            return (Criteria) this;
        }

        public Criteria andCCardIsNotNull() {
            addCriterion("c_card is not null");
            return (Criteria) this;
        }

        public Criteria andCCardEqualTo(String value) {
            addCriterion("c_card =", value, "cCard");
            return (Criteria) this;
        }

        public Criteria andCCardNotEqualTo(String value) {
            addCriterion("c_card <>", value, "cCard");
            return (Criteria) this;
        }

        public Criteria andCCardGreaterThan(String value) {
            addCriterion("c_card >", value, "cCard");
            return (Criteria) this;
        }

        public Criteria andCCardGreaterThanOrEqualTo(String value) {
            addCriterion("c_card >=", value, "cCard");
            return (Criteria) this;
        }

        public Criteria andCCardLessThan(String value) {
            addCriterion("c_card <", value, "cCard");
            return (Criteria) this;
        }

        public Criteria andCCardLessThanOrEqualTo(String value) {
            addCriterion("c_card <=", value, "cCard");
            return (Criteria) this;
        }

        public Criteria andCCardLike(String value) {
            addCriterion("c_card like", value, "cCard");
            return (Criteria) this;
        }

        public Criteria andCCardNotLike(String value) {
            addCriterion("c_card not like", value, "cCard");
            return (Criteria) this;
        }

        public Criteria andCCardIn(List<String> values) {
            addCriterion("c_card in", values, "cCard");
            return (Criteria) this;
        }

        public Criteria andCCardNotIn(List<String> values) {
            addCriterion("c_card not in", values, "cCard");
            return (Criteria) this;
        }

        public Criteria andCCardBetween(String value1, String value2) {
            addCriterion("c_card between", value1, value2, "cCard");
            return (Criteria) this;
        }

        public Criteria andCCardNotBetween(String value1, String value2) {
            addCriterion("c_card not between", value1, value2, "cCard");
            return (Criteria) this;
        }

        public Criteria andCSizeIsNull() {
            addCriterion("c_size is null");
            return (Criteria) this;
        }

        public Criteria andCSizeIsNotNull() {
            addCriterion("c_size is not null");
            return (Criteria) this;
        }

        public Criteria andCSizeEqualTo(String value) {
            addCriterion("c_size =", value, "cSize");
            return (Criteria) this;
        }

        public Criteria andCSizeNotEqualTo(String value) {
            addCriterion("c_size <>", value, "cSize");
            return (Criteria) this;
        }

        public Criteria andCSizeGreaterThan(String value) {
            addCriterion("c_size >", value, "cSize");
            return (Criteria) this;
        }

        public Criteria andCSizeGreaterThanOrEqualTo(String value) {
            addCriterion("c_size >=", value, "cSize");
            return (Criteria) this;
        }

        public Criteria andCSizeLessThan(String value) {
            addCriterion("c_size <", value, "cSize");
            return (Criteria) this;
        }

        public Criteria andCSizeLessThanOrEqualTo(String value) {
            addCriterion("c_size <=", value, "cSize");
            return (Criteria) this;
        }

        public Criteria andCSizeLike(String value) {
            addCriterion("c_size like", value, "cSize");
            return (Criteria) this;
        }

        public Criteria andCSizeNotLike(String value) {
            addCriterion("c_size not like", value, "cSize");
            return (Criteria) this;
        }

        public Criteria andCSizeIn(List<String> values) {
            addCriterion("c_size in", values, "cSize");
            return (Criteria) this;
        }

        public Criteria andCSizeNotIn(List<String> values) {
            addCriterion("c_size not in", values, "cSize");
            return (Criteria) this;
        }

        public Criteria andCSizeBetween(String value1, String value2) {
            addCriterion("c_size between", value1, value2, "cSize");
            return (Criteria) this;
        }

        public Criteria andCSizeNotBetween(String value1, String value2) {
            addCriterion("c_size not between", value1, value2, "cSize");
            return (Criteria) this;
        }

        public Criteria andCStateIsNull() {
            addCriterion("c_state is null");
            return (Criteria) this;
        }

        public Criteria andCStateIsNotNull() {
            addCriterion("c_state is not null");
            return (Criteria) this;
        }

        public Criteria andCStateEqualTo(Integer value) {
            addCriterion("c_state =", value, "cState");
            return (Criteria) this;
        }

        public Criteria andCStateNotEqualTo(Integer value) {
            addCriterion("c_state <>", value, "cState");
            return (Criteria) this;
        }

        public Criteria andCStateGreaterThan(Integer value) {
            addCriterion("c_state >", value, "cState");
            return (Criteria) this;
        }

        public Criteria andCStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("c_state >=", value, "cState");
            return (Criteria) this;
        }

        public Criteria andCStateLessThan(Integer value) {
            addCriterion("c_state <", value, "cState");
            return (Criteria) this;
        }

        public Criteria andCStateLessThanOrEqualTo(Integer value) {
            addCriterion("c_state <=", value, "cState");
            return (Criteria) this;
        }

        public Criteria andCStateIn(List<Integer> values) {
            addCriterion("c_state in", values, "cState");
            return (Criteria) this;
        }

        public Criteria andCStateNotIn(List<Integer> values) {
            addCriterion("c_state not in", values, "cState");
            return (Criteria) this;
        }

        public Criteria andCStateBetween(Integer value1, Integer value2) {
            addCriterion("c_state between", value1, value2, "cState");
            return (Criteria) this;
        }

        public Criteria andCStateNotBetween(Integer value1, Integer value2) {
            addCriterion("c_state not between", value1, value2, "cState");
            return (Criteria) this;
        }

        public Criteria andCBeiyong1IsNull() {
            addCriterion("c_beiyong1 is null");
            return (Criteria) this;
        }

        public Criteria andCBeiyong1IsNotNull() {
            addCriterion("c_beiyong1 is not null");
            return (Criteria) this;
        }

        public Criteria andCBeiyong1EqualTo(String value) {
            addCriterion("c_beiyong1 =", value, "cBeiyong1");
            return (Criteria) this;
        }

        public Criteria andCBeiyong1NotEqualTo(String value) {
            addCriterion("c_beiyong1 <>", value, "cBeiyong1");
            return (Criteria) this;
        }

        public Criteria andCBeiyong1GreaterThan(String value) {
            addCriterion("c_beiyong1 >", value, "cBeiyong1");
            return (Criteria) this;
        }

        public Criteria andCBeiyong1GreaterThanOrEqualTo(String value) {
            addCriterion("c_beiyong1 >=", value, "cBeiyong1");
            return (Criteria) this;
        }

        public Criteria andCBeiyong1LessThan(String value) {
            addCriterion("c_beiyong1 <", value, "cBeiyong1");
            return (Criteria) this;
        }

        public Criteria andCBeiyong1LessThanOrEqualTo(String value) {
            addCriterion("c_beiyong1 <=", value, "cBeiyong1");
            return (Criteria) this;
        }

        public Criteria andCBeiyong1Like(String value) {
            addCriterion("c_beiyong1 like", value, "cBeiyong1");
            return (Criteria) this;
        }

        public Criteria andCBeiyong1NotLike(String value) {
            addCriterion("c_beiyong1 not like", value, "cBeiyong1");
            return (Criteria) this;
        }

        public Criteria andCBeiyong1In(List<String> values) {
            addCriterion("c_beiyong1 in", values, "cBeiyong1");
            return (Criteria) this;
        }

        public Criteria andCBeiyong1NotIn(List<String> values) {
            addCriterion("c_beiyong1 not in", values, "cBeiyong1");
            return (Criteria) this;
        }

        public Criteria andCBeiyong1Between(String value1, String value2) {
            addCriterion("c_beiyong1 between", value1, value2, "cBeiyong1");
            return (Criteria) this;
        }

        public Criteria andCBeiyong1NotBetween(String value1, String value2) {
            addCriterion("c_beiyong1 not between", value1, value2, "cBeiyong1");
            return (Criteria) this;
        }

        public Criteria andCBeiyong2IsNull() {
            addCriterion("c_beiyong2 is null");
            return (Criteria) this;
        }

        public Criteria andCBeiyong2IsNotNull() {
            addCriterion("c_beiyong2 is not null");
            return (Criteria) this;
        }

        public Criteria andCBeiyong2EqualTo(String value) {
            addCriterion("c_beiyong2 =", value, "cBeiyong2");
            return (Criteria) this;
        }

        public Criteria andCBeiyong2NotEqualTo(String value) {
            addCriterion("c_beiyong2 <>", value, "cBeiyong2");
            return (Criteria) this;
        }

        public Criteria andCBeiyong2GreaterThan(String value) {
            addCriterion("c_beiyong2 >", value, "cBeiyong2");
            return (Criteria) this;
        }

        public Criteria andCBeiyong2GreaterThanOrEqualTo(String value) {
            addCriterion("c_beiyong2 >=", value, "cBeiyong2");
            return (Criteria) this;
        }

        public Criteria andCBeiyong2LessThan(String value) {
            addCriterion("c_beiyong2 <", value, "cBeiyong2");
            return (Criteria) this;
        }

        public Criteria andCBeiyong2LessThanOrEqualTo(String value) {
            addCriterion("c_beiyong2 <=", value, "cBeiyong2");
            return (Criteria) this;
        }

        public Criteria andCBeiyong2Like(String value) {
            addCriterion("c_beiyong2 like", value, "cBeiyong2");
            return (Criteria) this;
        }

        public Criteria andCBeiyong2NotLike(String value) {
            addCriterion("c_beiyong2 not like", value, "cBeiyong2");
            return (Criteria) this;
        }

        public Criteria andCBeiyong2In(List<String> values) {
            addCriterion("c_beiyong2 in", values, "cBeiyong2");
            return (Criteria) this;
        }

        public Criteria andCBeiyong2NotIn(List<String> values) {
            addCriterion("c_beiyong2 not in", values, "cBeiyong2");
            return (Criteria) this;
        }

        public Criteria andCBeiyong2Between(String value1, String value2) {
            addCriterion("c_beiyong2 between", value1, value2, "cBeiyong2");
            return (Criteria) this;
        }

        public Criteria andCBeiyong2NotBetween(String value1, String value2) {
            addCriterion("c_beiyong2 not between", value1, value2, "cBeiyong2");
            return (Criteria) this;
        }

        public Criteria andCBeiyong3IsNull() {
            addCriterion("c_beiyong3 is null");
            return (Criteria) this;
        }

        public Criteria andCBeiyong3IsNotNull() {
            addCriterion("c_beiyong3 is not null");
            return (Criteria) this;
        }

        public Criteria andCBeiyong3EqualTo(String value) {
            addCriterion("c_beiyong3 =", value, "cBeiyong3");
            return (Criteria) this;
        }

        public Criteria andCBeiyong3NotEqualTo(String value) {
            addCriterion("c_beiyong3 <>", value, "cBeiyong3");
            return (Criteria) this;
        }

        public Criteria andCBeiyong3GreaterThan(String value) {
            addCriterion("c_beiyong3 >", value, "cBeiyong3");
            return (Criteria) this;
        }

        public Criteria andCBeiyong3GreaterThanOrEqualTo(String value) {
            addCriterion("c_beiyong3 >=", value, "cBeiyong3");
            return (Criteria) this;
        }

        public Criteria andCBeiyong3LessThan(String value) {
            addCriterion("c_beiyong3 <", value, "cBeiyong3");
            return (Criteria) this;
        }

        public Criteria andCBeiyong3LessThanOrEqualTo(String value) {
            addCriterion("c_beiyong3 <=", value, "cBeiyong3");
            return (Criteria) this;
        }

        public Criteria andCBeiyong3Like(String value) {
            addCriterion("c_beiyong3 like", value, "cBeiyong3");
            return (Criteria) this;
        }

        public Criteria andCBeiyong3NotLike(String value) {
            addCriterion("c_beiyong3 not like", value, "cBeiyong3");
            return (Criteria) this;
        }

        public Criteria andCBeiyong3In(List<String> values) {
            addCriterion("c_beiyong3 in", values, "cBeiyong3");
            return (Criteria) this;
        }

        public Criteria andCBeiyong3NotIn(List<String> values) {
            addCriterion("c_beiyong3 not in", values, "cBeiyong3");
            return (Criteria) this;
        }

        public Criteria andCBeiyong3Between(String value1, String value2) {
            addCriterion("c_beiyong3 between", value1, value2, "cBeiyong3");
            return (Criteria) this;
        }

        public Criteria andCBeiyong3NotBetween(String value1, String value2) {
            addCriterion("c_beiyong3 not between", value1, value2, "cBeiyong3");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}